package com.ttg.web.dao.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ttg.model.mapper.BankAgentMapper;
import com.ttg.model.pojo.BankAgent;
import com.ttg.model.vo.BankAgentListVo;
import com.ttg.web.dao.BankAgentDao;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author zhangHongYuan
 * @description
 * @date 2023/6/8 11:19
 */
@Slf4j
@Service
public class BankAgentDaoImpl extends ServiceImpl<BankAgentMapper, BankAgent> implements BankAgentDao {


    @Override
    public void truncate() {
        baseMapper.truncate();
    }

    @Override
    public List<BankAgentListVo> bankAgentList() {
        return baseMapper.bankAgentList();
    }

    @Override
    public boolean updateAgentNoEveryLevel() {
        baseMapper.updateAgentNoLevel2();
        baseMapper.updateAgentNoLevel3();
        baseMapper.updateAgentNoLevel4();
        return true;}
}
